home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d7 / dbdial.arc / EXDIAL3.PRG < prev    next >
Text File  |  1989-08-20  |  2KB  |  77 lines

  1. do while .T.
  2. clear
  3. set talk off
  4. Set status off
  5. set delimiters to '[]'
  6. set delimiters on
  7. message = "DIALx.BIN Example Program"
  8. do menubox with message
  9. store 0 to m_port
  10. store space(20) to m_number
  11. @8,23 say [Is your modem on COM1: or COM2:] color bg+
  12. @8,54 get m_port picture '9' 
  13. read
  14. if m_port = 1
  15. load dial1
  16. @8,54 say [COM1:] color gr+
  17. else
  18. load dial2
  19. @8,54 say [COM2:] color gr+
  20. endif
  21. @10,20 say [Enter number to dial ] color bg+
  22. @10,41 get m_number
  23. read
  24. store trim(m_number) to m_number
  25. store 'Dialing - ' + m_number to m_dial
  26. @12,40 - (len(m_dial)/2) say m_dial color gr*+
  27. @14,24 say [Press <SPACE> to hang up modem.] color w+
  28. if m_port = 1
  29. call dial1 with m_number
  30. else
  31. call dial2 with m_number
  32. endif
  33. store 'N' to ans
  34. @22,29 say [Dial another number?] color r+
  35. @22,51 get ans picture '!' 
  36. if ans = 'Y'
  37. loop
  38. else
  39. clear
  40. message = 'Enjoy the new power of dBASE'
  41. do menubox with message
  42. @7,5 say [Future enhancements include:] color r
  43. @8,10 say [Support for COM3: and COM4:] color w+
  44. @9,10 say [Error codes returned ] color w+
  45. @10,10 say [Pulse Dialing] color w+
  46. @12,3 say [Please support Starboard Tack Consulting by registering your copy of DIALx,] color gr+
  47. @13,3 say [or, give us a call for any of your custom dBASE, or Clipper programming ] color gr+
  48. @14,3 say [needs. (Our address is in the documents you recieved with this archive.] color gr+
  49. @22,23 say [Press any key to return to dBASE] color r+
  50. l_key = 0
  51. do while l_key = 0
  52. l_key = inkey()
  53. enddo
  54. if m_port = 1
  55. release module dial1
  56. else
  57. release module dial2
  58. endif
  59. release all like m*
  60. set status on
  61. set delimiters off
  62. set color to
  63. set talk on
  64. return
  65. endif
  66. enddo
  67.  
  68. PROC menubox
  69. PARA name
  70. CLEA
  71. @ 0, 0 TO 23, 79 DOUB COLO G
  72. @ 2, 1 TO 2, 78 DOUB COLO G
  73. @ 1, 1 SAY SUBS(CDOW(DATE()),1,3)+'. '+Dtoc(DATE())+' ' COLO GR+
  74. @ 1, 41 - (LEN(name)/2) SAY name COLO GR+
  75. RETU
  76.  
  77.